Page({
  data: {
    products: [
      {
        id: 1,
        name: 'Redmi K70 12GB + 256GB 墨羽',
        price: 2199,
        image: "https://img12.360buyimg.com/n7/jfs/t1/247391/27/16932/46204/66c2f541F954a27f5/2653d687027e18c1.jpg.avif",
        produce:'100万+条评价   100%好评',
        produce1:'小米自营店     进店》',
        url: "/packageD/fl11/fl11"
      },
      {
        id: 2,
        name: 'Redmi Turbo3 12GB + 256GB',
        price: 2299,
        image: "https://img12.360buyimg.com/n1/s450x450_jfs/t1/227042/35/15991/83462/6620ec78F9c7e1cef/fc7d3004b4471bce.jpg.avif",
        produce:'256GB                 光学防抖',
        produce1:'机身内存                  屏幕刷新率',
        url: "/packageD/fl11/fl111"
      },
      {
        id: 3,
        name: 'Redmi K70至尊 12GB + 256GB',
        price: 2599,
        image: "https://img10.360buyimg.com/n7/jfs/t1/9477/1/26962/39646/66be064fF0f7ad0d4/87a22ff80060941f.jpg.avif",
        produce:'200+条评价   15天加购飙升',
        produce1:'小米自营旗舰店   进店》',
        url: "/packageD/fl11/fl112"
      },
      {
        id: 4,
        name: 'Redmi K70E 12GB + 256GB影青 AI功能',
        price: 1549,
        image: "https://img13.360buyimg.com/n7/jfs/t1/3955/13/23960/26327/669dc264F2a68dabc/1023114b4749161a.jpg.avif",
        produce:'200万+条评价 30天加购飙升5倍',
        produce1:'小米自营旗舰店 进店》',
        url: "/packageD/fl11/fl113"
      },
      {
        id: 5,
        name: '小米（MI）Redmi Turbo3 第三代骁龙8s',
        price: 1699,
        image: "https://img14.360buyimg.com/n7/jfs/t1/68576/14/25932/71154/66bead02Fba2b91a3/cbd5c35ef33e7537.jpg.avif",
        produce:'200+条评价 20万+人种草',
        produce1:'小米官方旗舰店 进店》',
        url: "/packageD/fl11/fl114"
      }
      // 可以继续添加更多商品
    ]
  },

  onProductClick: function (event) {
    const url = event.currentTarget.dataset.url;
    wx.navigateTo({
      url: url
    });
  }
});
